@import "./reset";
@import "./bootstrap";
@import "./common";

// 头部
header {
    // 大图片
    .banner {
        margin-top: 50px;
        overflow: hidden;
        position: relative;
        &:hover .last {
            display: block;
        }
        &:hover .next {
            display: block;
        }
        .img {
            width: 500%;
            display: flex;
            position: relative;
            img {
                width: 20%;
            }
        }
        .but {
            width: 200px;
            @include display-box;
            justify-content: center;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 20px;
            @media (max-width: 991px) {
                bottom: 0;
            }
            li {
                width: 20px;
                height: 20px;
                background-color: #fff;
                border-radius: 50%;
                margin-right: 15px;
            }
            .green {
                background-color: greenyellow;
            }
        }
        .last,
        .next {
            font-size: 50px;
            width: 50px;
            height: 50px;
            text-align: center;
            color: #fff;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: none;
            &:hover {
                color: greenyellow;
            }
        }
        .last {
           left: 0; 
        }
    }
}

// 主要内容
section {
    // LayaFlash 引擎
    .engine {
        width: 100%;
        background-color: #fbfaf7;
        padding-top: 107px;
        padding-bottom: 54px;
        .container {
             // 左边引擎介绍
            .left {
                .left-top {
                    // 小平的时候居中标题
                    @media (max-width: 992px) {
                        text-align: center;
                    }
                    width: 100%;
                    h2 {
                        font-size: 50px;
                        color: #0078d7;
                        line-height: 85px;
                        font-weight: bolder;
                    }
                    span {
                        font-size: 32px;
                        color: #666666;
                        line-height: 68px;
                    }
                    // 移动端的时候缩小字体
                    @media (max-width: 768px) {
                        h2 {
                            font-size: 45px;
                        }
                        span {
                            font-size: 18px;
                        }
                    }
                }
                .left-bottom {
                    margin-top: 50px;
                    li {
                        a {
                            width: 100%;
                            display: flex;
                            align-items: flex-start;
                            flex: 1 0 auto;
                            color: #333333;
                            text-decoration: none;
                            margin-bottom: 48px;
                            div:first-of-type {
                                border-radius: 5px;
                                width: 66px;
                                height: 66px;
                                background-color: #0078d7;
                                @include display-box;
                                justify-content: center;
                                margin-right: 15px;
                            }
                            div:last-of-type {
                                width: 222px;
                                h3 {
                                    // line-height: 34px;
                                    margin-top: 0;
                                    font-size: 20px;
                                    font-weight: bold;
                                }
                                span {
                                    line-height: 28px;
                                    font-size: 14px;
                                    color: #b1b0af;
                                }
                            }
                        }
                        // 为在移动端居中
                        @media (max-width: 768px) {
                            a {
                                justify-content: center;
                                div:last-of-type {
                                    width: 70%;
                                }
                            }
                        }
                    }
                }
            }
            // 右边手机图片
            .right {
                margin-top: 50px;
                img {
                    width: 100%;
                }
            }
        }
    }

    // LayaFlash 优势 
    .advantage {
        margin-top: 90px;
        .row {
            // 左边地球图片
            .left-img {
                padding-top: 75px;
                // 为在移动端居中
                @media (max-width: 768px) {
                    display: flex;
                    justify-content: center;
                    padding-top: 0;
                }
            }
            // 右边优势介绍
            .right-list {
                margin-bottom: 80px;
                // 为在移动端居中
                @media (max-width: 768px) {
                    display: flex;
                    justify-content: center;
                    flex-wrap: wrap;
                }
                div {
                    h2 {
                        line-height: 72px;
                        font-size: 50px;
                        font-weight: bolder;
                        color: #8fc31f;
                    }
                }
                ul {
                    li {
                        @include display-box;
                        justify-content: start;
                        margin-bottom: 15px;
                        div:first-of-type {
                            width: 55px;
                            height: 55px;
                            background-color: #8fc31f;
                            @include display-box;
                            justify-content: center;
                            border-radius: 50%;
                            flex: 0 0 auto;
                        }
                        div:last-of-type {
                            padding-left: 10px;
                            span {
                                font-size: 18px;
                                color: #666666;
                            }
                        }
                    }
                }
            }
        }
    }

    // Layabox产品家族
    .family {
        width: 100%;
        background-color: #0079d7;
        .container {
            padding-top: 110px;
            // 产品家族标题
            .title {
                margin-bottom: 85px;
                a {
                    text-decoration: none;
                    h2 {
                        font-size: 50px;
                        font-weight: bolder;
                        text-align: center;
                        color: #fff;
                    }
                }
            }
            // 产品家族介绍
            .introduce {
                margin-bottom: 50px;
                li {
                    margin-bottom: 25px;
                    // 为在移动端居中
                    @media (max-width: 768px) {
                        display: flex;
                        justify-content: center;
                        flex-wrap: wrap;
                    }
                    a {
                        @include display-box;
                        justify-content: start;
                        align-items: flex-start;
                        color: #fff;
                        text-decoration: none;
                        height: 200px;
                        div:first-of-type {
                            width: 30%;
                            @include display-box;
                            justify-content: center;
                            margin-top: 20px;
                        }
                        div:last-of-type {
                            width: 60%;
                            h3 {
                                font-size: 25px;
                                font-weight: bold;
                                line-height: 50px;
                            }
                            span {
                                font-size: 17px;
                                font-weight: lighter;
                                color: #fffefe;
                                line-height: 30px;
                            }
                        }
                    }
                }
            }
        }
    }

    // 采用Layabox引擎的精彩游戏
    .game {
        margin-top: 70px;
        margin-bottom: 40px;
        // 标题更多
        .gmtl {
            @include display-box;
            a {
                color: #333333;
                text-decoration: none;
                h2 {
                    font-size: 36px;
                    line-height: 50px;
                    // 移动端缩小字体
                    @media (max-width: 768px) {
                        font-size: 22px;
                    }
                }
                span {
                    font-size: 16px;
                }
            }
            // 保持更多的宽度
            a:last-of-type {
                flex: 0 0 auto;
            }
        }
        // 游戏
        .gmls {
            margin-top: 40px;
            // 视频
            .gm-video {
                margin-bottom: 25px;
                // 小屏幕和移动端视频居中
                @media (max-width: 992px) {
                    @include display-box;
                    justify-content: center;
                }
                video {
                    width: 370px;
                    height: 200px;
                    // 移动端视频占满
                    @media (max-width: 768px) {
                        width: 100%;
                    }   
                }
            }
            // 游戏列表
            .gm-list {
                ul {
                    li {
                        margin-bottom: 30px;
                        &:hover a {
                            transform: scale(1.2);
                        }
                        a {
                            @include display-box;
                            flex-direction: column;
                            color: #333333;
                            text-decoration: none;
                            span {
                                font-size: 14px;
                                line-height: 22px;
                            }
                        }
                    }
                }
            }
        }
    }

    // 合作伙伴
    .partner {
        width: 100%;
        background-color: #f4f4f4;
        // 标题
        .pane-title {
            margin-top: 40px;
            margin-bottom: 32px;
            a {
                @include display-box;
                justify-content: start;
                align-items: flex-end;
                color: #333333;
                text-decoration: none;
                h2 {
                    font-size: 30px;
                    margin-bottom: 0;
                }
                @media (max-width: 992px) {
                    justify-content: center;
                }
            }
        }
        // 合作伙伴列表
        .pane-list {
            margin-bottom: 50px;
            li {
                margin-bottom: 20px;
                @include display-box;
                justify-content: center;
                &:hover a {
                    box-shadow: 4px 4px 2px #797979;
                    transform: translateY(-5px);
                }
            }
        }
    }
}